#ifndef __COMMON_H__
#define __COMMON_H__

#include <iostream>
#include <fstream>
#include <string>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <cstring>

using namespace std;

const string PipeName = "./pipe";
const string FileName = "students.txt";
const string TempFileName = "temp.txt";
const string stupath = "./students.txt";
const int size = 1024;

const int MaxNameLength = 50;
const int MaxGenderLength = 10;
const int MaxCommandLength = 10;

struct Student 
{
    string name;
    string gender;
    int age;
    string classinfo;
};

void processCommand(int pipe);

#endif